<%-- 
    Document   : opener
    Created on : 17 черв 2012, 19:55:44
    Author     : Volodymyr Lavrynovych <volodya.lavrynovych@gmail.com>
--%>

<%@page import="mycompany.helper.ApplicationContentHelper"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<% ApplicationContentHelper helper = new ApplicationContentHelper(request);%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Opener...</title>
        <script type="text/javascript">
            var dialogParams = "height=600px, width=400px, location=no, resizable=no, scrollbars=no, titlebar=no, statusbar=no, menubar=no";
            
            function openChat(){
                try{
                    window.open("<%=helper.getURL()%>/chats/${type}/${chatId}/", "PrivateChatRoom${chatId}", dialogParams);
                    window.close();
                } catch (e){
                    alert(e);
                }
            }
            openChat();
        </script>
    </head>
    <body>
    </body>
</html>
